package model;

import java.io.Serializable;

public class Acknowledgement implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 5882076241898587953L;

	public static final int ACK_EMAIL_SENT_SUCCESSFULLY = 0;
	
	public static final int ACK_MEETING_ACCEPTED = 1;
	
	public static final int ACK_MEETING_REJECTED = 2;
	
	public static final int ACK_MEETING_UPDATED_By_USER = 3;

	public static final int ACK_MEETING_UPDATED_TO_PERSIST = 4;
	
	public static final int ACK_MEETING_CANCELLED = 5;

	
	public int action;
	public Object receivedObj;
	public String from;
	
	/**
	 * Constructor
	 * @param action the action taken place
	 * @param receivedObj object which holds the information related to the action
	 */
    public Acknowledgement(int action, Object receivedObj)
    {
        this.action = action;
        this.receivedObj = receivedObj;
    }
	
	/**
	 * Constructor
     * @param action the action taken place
     * @param receivedObj object which holds the information related to the action
	 * @param from the user who sent the acknowledgment
	 */
	public Acknowledgement(int action, Object receivedObj,String from)
	{
		this.action = action;
		this.receivedObj = receivedObj;
		this.from = from;
	}
	
}
